﻿#define _CRT_SECURE_NO_WARNINGS 1

//编程初学者入门训练第七十八题
//BC80 登录验证
//https://www.nowcoder.com/practice/799daf76369c4fb1a2e2d56f885225ae?tpId=107&tqId=33361&rp=1&ru=/exam/oj/ta&qru=/exam/oj/ta&sourceUrl=%2Fexam%2Foj%2Fta%3Fpage%3D2%26tpId%3D107%26type%3D107&difficulty=undefined&judgeStatus=undefined&tags=&title=

#include<stdio.h>
#include <string.h>

int main() {
    char name[20] = { 0 };
    char passage[20] = { 0 };
    //strcmp - 用来比较两个字符串是否相等
    while (scanf("%s %s", name, passage) != EOF) {
        if (strcmp(name, "admin") == 0 && strcmp(passage, "admin") == 0) {
            printf("Login Success!");
        }
        else {
            printf("Login Fail!");
        }
    }
    return 0;
}